package com.yfq.springframework.beans;

/**
 * @author 姚凤桥
 * @date 2022/11/13 14:17
 * @description
 */
public interface SingletonBeanRegistry {
    /**
     * 获取单例bean
     *
     * @param beanName ...
     * @return ...
     */
    Object getSingletonBean(String beanName);

    /**
     * 注册单例bean
     *
     * @param beanName      ..
     * @param singletonBean ...
     */
    void registerSingleton(String beanName, Object singletonBean);

}
